package day1126;

import java.util.Arrays;

public class demo1 {
    static int[] a={1,2,3,5};
    public static void gcd(){
        a= Arrays.copyOf(a,a.length+1);
        a[a.length-1]=(int)(Math.random()*100);
        System.out.println(a[a.length-1]);
    }
    public static void main(String[] args) {
        gcd();
        System.out.println(Arrays.toString(a));
    }
}
